<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%
    String path = request.getContextPath(); 
    String basePath =
            request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
                    + path + "/";
    response.setHeader("Pragma", "No-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);
%>  
<!DOCTYPE html >
<html>
<head>

<link rel="shortcut icon" href="<%=basePath%>rs/assets/img/favicon.png">
<style>
	.ruledetail{
		display: inline-block;
	    background-color: #6fb3e0;
	    padding: 5px 22px;
	    color: #fff;
	    vertical-align: middle;
	    border: 4px solid #6fb3e0;
	}
	.ruledetail:hover{
		background-color:#4f99c6;
		color:#fff;
		text-decoration:none; 
	}
	
	    
	</style>
    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/bootstrap.min.css"/>
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/colorbox.css" />
    <!-- text fonts -->
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/ace-fonts.css"/>
    <!-- ace styles -->
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/ace.min.css"
          id="main-ace-style"/>
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/ace-part2.min.css"/>
    <![endif]-->
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/ace-skins.min.css"/>
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/ace-rtl.min.css"/>
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/chosen.css"/>
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/datepicker.css"/>
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/daterangepicker.css"/>
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/bootstrap-table.css"/>
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/bootstrap-treeview.css"/>
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/ace.onpage-help.css" />
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/jquery.shCircleLoader.css" />
    <link rel="stylesheet" href="<%=basePath%>rs/assets/js/umeditor/themes/default/css/umeditor.css" />
    <!--[if lte IE 9]>
    <link rel="stylesheet" href="<%=basePath%>rs/assets/css/ace-ie.min.css"/>
    <![endif]-->

    <!--[if lt IE 9]>
    <script src="<%=basePath%>rs/assets/js/html5shiv.js"></script>
    <script src="<%=basePath%>rs/assets/js/respond.min.js"></script>
   <!-- basic scripts -->

<!--[if !IE]> -->
<script type="text/javascript">
    window.jQuery || document.write("<script src='<%=basePath%>rs/assets/js/jquery.min.js'>" + "<" + "/script>");
</script>

<!-- <![endif]-->

<!--[if IE]>
<script type="text/javascript">
    window.jQuery || document.write("<script src='<%=basePath%>rs/assets/js/jquery1x.min.js'>" + "<" + "/script>");
</script>
<![endif]-->
<script type="text/javascript">
    if ('ontouchstart' in document.documentElement) document.write("<script src='<%=basePath%>rs/assets/js/jquery.mobile.custom.min.js'>"
            + "<" + "/script>");
</script>
<script src="<%=basePath%>rs/assets/js/bootstrap.min.js"></script>

<!-- page specific plugin scripts -->
<script src="<%=basePath%>rs/assets/js/jquery.form.js"></script>
<!--[if lte IE 8]>
<script src="<%=basePath%>rs/assets/js/excanvas.min.js"></script>
<![endif]-->
<script src="<%=basePath%>rs/assets/js/jquery-ui.custom.min.js"></script>
<script src="<%=basePath%>rs/assets/js/jquery.ui.touch-punch.min.js"></script>
<script src="<%=basePath%>rs/assets/js/jquery.sparkline.min.js"></script>
<script src="<%=basePath%>rs/assets/js/flot/jquery.flot.min.js"></script>
<script src="<%=basePath%>rs/assets/js/flot/jquery.flot.pie.min.js"></script>
<script src="<%=basePath%>rs/assets/js/flot/jquery.flot.resize.min.js"></script>

<!-- ace scripts -->
<script src="<%=basePath%>rs/assets/js/ace.min.js"></script>
<script src="<%=basePath%>rs/assets/js/ace-elements.min.js"></script>
<script src="<%=basePath%>rs/assets/js/bootstrap-treeview.js"></script>
<script src="<%=basePath%>rs/assets/js/fuelux/fuelux.spinner.min.js"></script>


<script src="<%=basePath%>rs/assets/js/chosen.jquery.min.js"></script>
<script src="<%=basePath%>rs/assets/js/fuelux/fuelux.spinner.min.js"></script>
<script src="<%=basePath%>rs/assets/js/date-time/bootstrap-datepicker.js"></script>
<script src="<%=basePath%>rs/assets/js/date-time/bootstrap-timepicker.min.js"></script>
<script src="<%=basePath%>rs/assets/js/date-time/moment.min.js"></script>
<script src="<%=basePath%>rs/assets/js/date-time/daterangepicker.min.js"></script>
<script src="<%=basePath%>rs/assets/js/date-time/bootstrap-datetimepicker.min.js"></script>
<script src="<%=basePath%>rs/assets/js/bootstrap-colorpicker.min.js"></script>
<script src="<%=basePath%>rs/assets/js/jquery.knob.min.js"></script>
<script src="<%=basePath%>rs/assets/js/jquery.autosize.min.js"></script>
<script src="<%=basePath%>rs/assets/js/jquery.inputlimiter.1.3.1.min.js"></script>
<script src="<%=basePath%>rs/assets/js/jquery.maskedinput.min.js"></script>
<script src="<%=basePath%>rs/assets/js/jquery.messager.js"></script>
<script src="<%=basePath%>rs/assets/js/jquery.dialog.js"></script>
<script src="<%=basePath%>rs/assets/js/bootstrap-tag.min.js"></script>
<script src="<%=basePath%>rs/assets/js/typeahead.jquery.min.js"></script>

<script type="text/javascript"> ace.vars['base'] = '..'; </script>
<script src="<%=basePath%>rs/assets/js/ace/elements.onpage-help.js"></script>
<script src="<%=basePath%>rs/assets/js/ace/ace.onpage-help.js"></script>

<script src="<%=basePath%>rs/assets/js/jquery.dataTables.min.js"></script>

<script src="<%=basePath%>rs/assets/js/jquery.dataTables.bootstrap.js"></script>
<script src="<%=basePath%>rs/assets/js/bootstrap-table.min.js"></script>
<%-- <script src="<%=basePath%>rs/assets/js/bootstrap-table.js"></script> --%>

<script src="<%=basePath%>rs/assets/js/fuelux/fuelux.wizard.min.js"></script>
<script src="<%=basePath%>rs/assets/js/jquery.colorbox-min.js"></script>
<script src="<%=basePath%>rs/assets/js/ace/elements.onpage-help.js"></script>


	
<script src="<%=basePath%>rs/assets/js/bootstrap-wysiwyg.min.js"></script>
<script src="<%=basePath%>rs/assets/js/jquery.hotkeys.min.js"></script>

<script src="<%=basePath%>rs/assets/js/jquery.shCircleLoader-min.js"></script>

<script src="<%=basePath%>rs/assets/js/javascriptCheck.js"></script>

</head>
<body>
<div class="main-content" >

<!-- /section:basics/content.breadcrumbs -->
<div class="row">
			<div class="col-md-12">
				<h3 class="header smaller lighter blue">
					配置管理列表
					<span id="addName"
						style="float: right;margin: 4px 26px 0 0;font-size: 14px;color: #478FCA;font-family: initial;">欢迎
						<span></span><a href="<%=basePath%>qrsms/cancel"
							; style="color: #478FCA;margin-left: 16px;cursor: pointer;text-decoration: blink;">注销</a>
					</span>
				</h3>
				<div class="widget-box">
					<div class="widget-header widget-header-small">
						<h5 class="widget-title lighter">操作</h5>
						<div class="widget-toolbar">
							<a href="#" data-action="collapse">
								<i class="ace-icon fa fa-chevron-up"></i>
							</a>
						</div>
					</div>

					<div class="widget-body">
						<div class="widget-main">
							<div class="row">
							<div class="col-md-4">
									<label class=""> 规则编号	： </label>
									<input type="text" class="form-control " id="R_NUMBER" placeholder="请输入内容" style="display: inline-block; width: 50%;">
							</div>
							
							<div class="col-md-4">&nbsp;</div>
							<div class="col-md-4">
									<div class="input-group">
										<span class="">
										<button type="button" id="search" class="btn btn-purple btn-sm">
												查询
												<i class="ace-icon fa fa-search icon-on-right bigger-110"></i>
											</button>&nbsp;&nbsp;&nbsp;
											<button id="addBtn" type="button" class="btn btn-sm btn-info">
												新增
												<i class="ace-icon fa fa-plus icon-on-right bigger-110"></i>
											</button>&nbsp;&nbsp;&nbsp;
											<a href="<%=basePath%>show/ShowRule1" class="ruledetail">返回</a>
										</span>
									</div>
								</div>
							</div>
							
							
							
							
						</div>
					</div>
				</div>
				<div class="table-header" style="margin-top: 20px;">&nbsp;</div>
				<table id="tableInfo"></table>
			</div>
		</div><div class="page-content">
	<div class="page-content-area">
        
	</div><!-- /.page-content-area -->
</div><!-- /.page-content -->
<div>

</div>
</div><!-- /.main-content -->
<script type="text/javascript">
function operateFormatter(value, row, index) { 
	return [
	        '<a class="edit margin-left-20" href="javascript:void(0)" title="Edit" id="detailBtn">',
	            '<i class="glyphicon glyphicon-edit"></i> 修改',
	        '</a>&nbsp&nbsp',	        
	        '<a class="edit margin-left-20" href="javascript:void(0)" title="Delete" id="deleteBtn">',
	            '<i class="glyphicon glyphicon-edit"></i> 删除',
	        '</a>'
	    ].join('');
    
}
//修改规则编号重复问题
var USERNAME_var ="";
window.operateEvents = {
        'click #detailBtn': function (e, value, row, index) {
        	$('.sameinterfaceName').text("");
        	var R_RULE_ID = row.R_RULE_ID;
        	var R_ID = row.R_ID;
        	var R_NUMBER = row.R_NUMBER;
        	var R_ORDER = row.R_ORDER;
        	/* var RIGHTURL= row.RIGHTURL;
        	var ID = row.ID; */
        	$('#updateMenu').find("input[name='R_RULE_ID']").val(R_RULE_ID);
        	$('#updateMenu').find("input[name='R_ID']").val(R_ID);
			$('#updateMenu').find("input[name='R_NUMBER']").val(R_NUMBER);
			$('#updateMenu').find("input[name='R_ORDER']").val(R_ORDER);
			/* $('#updateMenu').find("input[name='ERRURL']").val(ERRURL);
			$('#updateMenu').find("input[name='RIGHTURL']").val(RIGHTURL); */
			USERNAME_var = R_NUMBER;
    		$('#updateMenu').modal('show');
        },
        'click #deleteBtn': function (e, value, row, index) {
        	var R_RULE_ID = row.R_RULE_ID;
			$.messager.confirm("提示", "是否确认删除", function() {
			
				deleteRow(R_RULE_ID);
			 });
        }
    };

function queryParams(params) {
	var param={
			R_NUMBER:$("#R_NUMBER").val(),
			offset: params.offset,
			limit: params.limit
	};
	  return param;
}

function doSearch(){
    	
    		var url = "<%=basePath%>show/serchrulsdate";
    		
            $('#tableInfo').bootstrapTable({
                method: 'get',
                url: url,
		        cache: false,
		        height: 450,
		        striped: true,
		        pagination: true,
		        sidePagination: 'server',
		        queryParams: queryParams,
		        pageNumber: 1,
		        pageSize: 10,
		        pageList: [10, 20],
                columns: [{
                    field: 'R_ID',
                    title: '规则',
                    align: 'center',
                    valign: 'middle'
                },{
                    field: 'R_NUMBER',
                    title: '规则编号',
                    align: 'center',
                    valign: 'middle'
                }, {
	                field: 'R_ORDER',
	                title: '顺序',
	                align: 'center',
	                valign: 'middle'
	            }, {
	                field: 'R_STATE',
	                title: '状态',
	                align: 'center',
	                valign: 'middle'
	                },{
                    field: 'operate',
                    title: '操作',
                    align: 'center',
                    valign: 'middle',
                    clickToSelect: false,
                    formatter: operateFormatter,
                    events: operateEvents
                }]
            });
    }

	$(function() { 
		//$("#USERNO1").change(function(){alert($("#USERNO1 option:selected").val());});
		$(window).resize(function () {$('#tableInfo').bootstrapTable('resetView'); });
		doSearch();
		$("#search").click(function(){
			$('#tableInfo').bootstrapTable("refresh",{url:"<%=basePath%>show/serchrulsdate"});
		});
			$("#addBtn").click(function(){
			$('input.form-control').val("");
			$('.sameinterfaceName').text("");
			$('#updateMenu').find("input[name='R_ID']").val('');
        	$('#updateMenu').find("input[name='R_NUMBER']").val('');
			$('#updateMenu').find("input[name='R_ORDER']").val('');
			$('#updateMenu').find("input[name='R_STATE']").val('');
			$("#addMenu").modal('show');
		});
		
	});

	
	
	function deleteRow(R_RULE_ID){
		
		$.ajax({    
            type:'post',        
            url:'<%=basePath%>show/deleteruledate',    
            data:{"R_RULE_ID":R_RULE_ID},    
            cache:false,    
            dataType:'json',    
            success:function(data){
            	if(data.code=='success'){
            		$.messager.alert("提示", "删除成功")
            		$('#tableInfo').bootstrapTable("refresh",{url:"<%=basePath%>show/serchrulsdate"});
            	}
            }    
        });
	}
	//添加判断条件
	var USERNAME_if = false;
	var ERRURL_if = false;
	//修改判断条件
	var USERNAME_update = false;
	var ERRURL_update = false;
	var USERNO2_update = false;
	//添加方法
	function submitForm(){
		USERNAME();
		ERRURL();
		if(USERNAME_if && ERRURL_if){
			$.ajax({    
            type:'post',        
            url:'<%=basePath%>show/insertruledate',    
            data:$('#addMenuForm').serialize(),
            cache:false,    
            dataType:'json',    
            success:function(data){
            	if(data.code=='success'){
            		$.messager.alert("提示", "添加成功！");
            		$("#addMenu").modal('hide');
            		$('#tableInfo').bootstrapTable("refresh",{url:"<%=basePath%>show/serchrulsdate"});
            	}
            }    
        });
		}
	}
	//修改方法
	function updatesubmitForm(){
		USERNAMEupdate();
		ERRURLupdate();
		USERNO2update();
		if(USERNAME_update && ERRURL_update && USERNO2_update){
				$.ajax({    
		            type:'post',        
		            url:'<%=basePath%>show/updateruledate',    
		            data:$('#updateMenuForm').serialize(),
		            cache:false,    
		            dataType:'json',    
		            success:function(data){
		            	if(data.code=='success'){
		            		$.messager.alert("提示", "修改成功！");
		            		$("#updateMenu").modal('hide');
		            		$('#tableInfo').bootstrapTable("refresh",{url:"<%=basePath%>show/serchrulsdate"});
		            	}
		            }    
		        });
			
		}
	}
	
	<%-- function updatesubmitForm(){
	
		if($("#USERNO2").val()==null||$("#USERNO2").val()==''){
				$.messager.alert("提示", "规则不能为空！")
				return;
			}
		if($("#USERNAME2").val()==null||$("#USERNAME2").val()==''){
			$.messager.alert("提示", "规则编号不能为空！")
			return;
		}
		if($("#ERRURL2").val()==null||$("#ERRURL2").val()==''){
			$.messager.alert("提示", "顺序不能为空！")
			return;
		}
		$.ajax({    
            type:'post',        
            url:'<%=basePath%>show/updateruledate',    
            data:$('#updateMenuForm').serialize(),
            cache:false,    
            dataType:'json',    
            success:function(data){
            	if(data.code=='success'){
            		$.messager.alert("提示", "修改成功！");
            		$("#updateMenu").modal('hide');
            		$('#tableInfo').bootstrapTable("refresh",{url:"<%=basePath%>show/serchrulsdate"});
            	}
            }    
        });
	} --%>
	//修改的规则编号判断
	function USERNAMEupdate(){
		var number = $("#USERNAME2").val();
		var zc = /^[0-9a-zA-Z]+$/;
		if(number.length == 0){
			$("#USERNAME2").next().html("不能为空");
			USERNAME_update = false;
		}else if(!zc.test(number)){
			$("#USERNAME2").next().html("只能由 数字和字母 组成");
			USERNAME_update = false;
		}else if(number.length > 20){
			$("#USERNAME2").next().html("超出限制，请输入20位字母或数字!");
			USERNAME_update = false;
		}else if(USERNAME_var != number ){
			$.ajax({
				type : "POST",
				url : '<%=basePath%>show/IsShow ',
				dataType : 'json',
				data : {R_NUMBER : number},
				async : false,
				success : function(data) {
						if(data == true){
							$("#USERNAME2").next().html("规则编号重复，请重新输入");
							USERNAME_update = false;
						}else{
							$("#USERNAME2").next().html("");
							USERNAME_update = true;
						}
						
				}
			});	
		}else{
			$("#USERNAME2").next().html("");
			USERNAME_update = true;
		}
	}
	//修改序列正则判断
	function ERRURLupdate(){
		var ERRURL = $("#ERRURL2").val();
		var zc = /^[0-9]+$/;
		if(ERRURL.length == 0){
			$("#ERRURL2").next().html("不能为空");
			ERRURL_update = false;
		}else if(!zc.test(ERRURL)){
			$("#ERRURL2").next().html("只能输入数字");
			ERRURL_update = false;
		}else if(ERRURL.length > 20){
			$("#ERRURL2").next().html("超出限制，请输入20位数字!");
			USERNAME_update = false;
		}else{
			$("#ERRURL2").next().html("");
			ERRURL_update = true;
		}
	}
	//修改规则正则判断
	function USERNO2update(){
		var ERRURL = $("#USERNO2").val();
		var zc = /^[0-9]+$/;
		if(ERRURL.length == 0){
			$("#USERNO2").next().html("不能为空");
			USERNO2_update = false;
		}else if(!zc.test(ERRURL)){
			$("#USERNO2").next().html("只能输入数字");
			USERNO2_update = false;
		}else{
			$.ajax({
				type : "POST",
				url : '<%=basePath%>show/IsShowGid ',
				dataType : 'json',
				data : {
					R_ID : ERRURL
				},
				async : false,
				success : function(data) {
					if(data != true){
						$("#USERNO2").next().html("规则不存在！");
						USERNO2_update = false;
					}else{
						$("#USERNO2").next().html("");
						USERNO2_update = true;
					}
				}
			});	
		}
	}
	//添加规则判断
	function USERNAME(){
		
		var number = $("#USERNAME1").val();
		var zc = /^[0-9a-zA-Z]+$/;
		if(number.length == 0){
			$("#USERNAME1").next().html("不能为空");
			USERNAME_if = false;
		}else if(!zc.test(number)){
			$("#USERNAME1").next().html("只能由 数字和字母 组成");
			USERNAME_if = false;
		}else if(number.length > 20){
			$("#USERNAME1").next().html("超出限制，请输入20位字母或数字!");
			USERNAME_if = false;
		}else{
			$.ajax({
			type : "POST",
			url : '<%=basePath%>show/IsShow ',
			dataType : 'json',
			data : {
				R_NUMBER : number
			},
			async : false,
			success : function(data) {
					if(data == true){
						$("#USERNAME1").next().html("规则编号重复，请重新输入");
						USERNAME_if = false;
					}else{
						$("#USERNAME1").next().html("");
						USERNAME_if = true;
					}
					
			}
		});	
		}
	}
	function ERRURL(){
		
		var ERRURL = $("#ERRURL1").val();
		var USERNO = $("#USERNO1").val();
		var zc = /^[0-9]+$/;
		if(ERRURL.length == 0){
			$("#ERRURL1").next().html("不能为空");
			ERRURL_if = false;
		}else if(!zc.test(ERRURL)){
			$("#ERRURL1").next().html("只能输入数字");
			ERRURL_if = false;
		}else if(ERRURL.length >10){
			$("#ERRURL1").next().html("超出限制，请输入10字以内数字！");
			ERRURL_if = false;
		}else{
			$.ajax({
			type : "POST",
			url : '<%=basePath%>show/IsShowOrder ',
			dataType : 'json',
			data : {
				R_ORDER : ERRURL,
				R_ID : USERNO
			},
			async : false,
			success : function(data) {
					if(data == true){
						$("#ERRURL1").next().html("规则编号重复，请重新输入");
						ERRURL_if = false;
					}else{
						$("#ERRURL1").next().html("");
						ERRURL_if = true;
					}
					
			}
		});	
			/* $("#ERRURL1").next().html("");
			ERRURL_if = true; */
			
		} 
	}
	$(function(){
		$.ajax({    
	            type:'post',        
	           	url:'<%=basePath%>qrsms/cookiers',
	            cache:false,    
	            dataType:'json',    
	            success:function(data){
		            $('#addName span').text(data);
	            }    
	        });
	});
</script>	

 
 
 <div class="row" >	
	<!-- add -->
	<div class="modal fade" id="addMenu" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" id="close1" data-dismiss="modal"
						aria-hidden="true">&times;</button>
					<h4 class="modal-title" id="myModalLabel">新增客户</h4>
				</div>
				<!-- 
					var QR_ID = row.QR_ID;
        	var QR_CONTENT = row.QR_CONTENT;
        	var QR_FLAG = row.QR_FLAG;
				 -->
				<div class="modal-body">
					<form role="form" action="" method="post" id="addMenuForm">
						<div class="form-group">
							<label>规则 ：</label> 
							<!-- <input class="form-control"  name="R_ID" type="text" id="USERNO1" maxlength="40"> -->
							<select class="form-control"  name="R_ID" type="text" id="USERNO1">
								<c:forEach items="${list}" var="list">
								<option value="${list.QR_ID}">${list.QR_CONTENT}</option>
								<!-- <option>2222</option>
								<option>3333</option> -->
								</c:forEach>
							</select>
						</div> 
						<div class="form-group">
							<label>规则编号 ：</label> 
							<input class="form-control"  name="R_NUMBER" type="text" id="USERNAME1"  onblur="USERNAME();">
							<span class="sameinterfaceName" style="color: #f00;"></span>
						</div>
						<div class="form-group">
							<label>顺序 ：</label> 
							<input class="form-control"  name="R_ORDER" type="text" id="ERRURL1"  onblur="ERRURL();">
							<span class="sameinterfaceName" style="color: #f00;"></span>
						</div>
						<!-- <div class="form-group">
							<label>正确跳转URL ：</label> 
							<input class="form-control"  name="RIGHTURL" type="text" id="RIGHTURL1" maxlength="100" placeholder="网址需以http://或https://开头">
						</div> -->
					</form>
				</div>
				<div class="modal-footer">
					<button class="btn btn-info" type="button" id="addBtn" onclick="submitForm();">
						<i class="ace-icon fa fa-check bigger-110"></i>
						增加
					</button>
					&nbsp; &nbsp; &nbsp;
					<button class="btn" type="button" id="close3" class="btn btn-default" data-dismiss="modal">
						<i class="ace-icon fa fa-undo bigger-110"></i>
						关闭
					</button>
				</div>
				<div class="modal-body" id="addMsg" style="color: red;"></div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal -->
	</div>
</div>
<div class="row" >	
	<!-- update -->
	<div class="modal fade" id="updateMenu" id="close2" tabindex="-1" role="dialog"
		aria-labelledby="myModalLabel" aria-hidden="true">
		<div class="modal-dialog">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal"
						aria-hidden="true" id="close2">&times;</button>
					<h4 class="modal-title" id="myModalLabel">修改规则</h4>
				</div>
				<div class="modal-body">
					<form role="form" action="" method="post" id="updateMenuForm">
						<input class="form-control"  name="R_RULE_ID" type="text" id="ID2" style="display:none">
						<div class="form-group">
							<label>规则 ：</label> 
							<input class="form-control"  name="R_ID" type="text" id="USERNO2" maxlength="40" onblur="USERNO2update();">
							<span class="sameinterfaceName" style="color: #f00;"></span>
						</div>
						<div class="form-group">
							<label>规则编号 ：</label> 
							<input class="form-control"  name="R_NUMBER" type="text" id="USERNAME2"   onblur="USERNAMEupdate();">
							<span class="sameinterfaceName" style="color: #f00;"></span>
						</div>
						<div class="form-group">
							<label>顺序 ：</label> 
							<input class="form-control"  name="R_ORDER" type="text" id="ERRURL2" onblur="ERRURLupdate();" >
							<span class="sameinterfaceName" style="color: #f00;"></span>
						</div>
						<!-- <div class="form-group">
							<label>正确跳转URL ：</label> 
							<input class="form-control"  name="RIGHTURL" type="text" id="RIGHTURL2" maxlength="100" placeholder="网址需以http://或https://开头">
						</div> -->
						</form>
				</div>
				<div class="modal-footer">
					<button class="btn btn-info" type="button" id="addBtn" onclick="updatesubmitForm();">
						<i class="ace-icon fa fa-check bigger-110"></i>
						修改
					</button>
					&nbsp; &nbsp; &nbsp;
					<button class="btn" type="button" id="close4" class="btn btn-default" data-dismiss="modal">
						<i class="ace-icon fa fa-undo bigger-110"></i>
						关闭
					</button>
				</div>
				<div class="modal-body" id="updateaddMsg" style="color: red;"></div>
			</div>
			<!-- /.modal-content -->
		</div>
		<!-- /.modal -->
	</div>
</div>	

</body>
</html>